Skip to content

feat(paywall): add base component, API interface, script#702

Merged
sidvishnoi merged 9 commits into
mainfrom
paywall-script-component-base
May 11, 2026
Merged

feat(paywall): add base component, API interface, script#702
sidvishnoi merged 9 commits into
mainfrom
paywall-script-component-base

Conversation

@sidvishnoi
Copy link
Copy Markdown
Member

Part of #670
Part of #672
Part of #677

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Deployment results

Worker Alias URL Outcome
API - 4621cc93 success
CDN - f3a4ecce success
App - e80935b4 success

Logs #25667347400

@sidvishnoi sidvishnoi marked this pull request as ready for review May 8, 2026 14:29
@sidvishnoi sidvishnoi requested a review from DarianM May 8, 2026 14:43
Comment thread cdn/src/paywall.ts
redirectUrl,
})
},
async *getStatus(paymentId, signal) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate of cdn widget.ts .
getStatus is identical in both files. since initiatePayment, fetchQuote, and getWallet are already extracted to a shared module, this should follow the same pattern maybe ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was thinking if we'll need this in same manner as widget. If we need it as same as widget, will extract then. So leaving as is until we actually implement it.

@sidvishnoi sidvishnoi merged commit 46f38f5 into main May 11, 2026
7 checks passed
@sidvishnoi sidvishnoi deleted the paywall-script-component-base branch May 11, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants